// src/stores/contexts/StoreContext.ts
import { createContext, useContext } from "react";
import { RootStoreInstance } from "../models/RootStore";

// 创建存储上下文
export const StoreContext = createContext<RootStoreInstance>({} as RootStoreInstance);

// 自定义Hook用于访问存储
export const useStore = () => useContext(StoreContext);